/// data : {"userId":1,"nickName":"quzah","password":"wyh123132","avatarUrl":null,"sex":"1","mobil":null,"createTime":"2021-10-19T11:08:24.000+00:00","updateTime":"2021-10-19T11:08:24.000+00:00"}
/// status : 200
/// msg : "ok"

class UserModel {
  UserModel({
    UserModelItem? data,
      int? status, 
      String? msg,}){
    _data = data;
    _status = status;
    _msg = msg;
}

  UserModel.fromJson(dynamic json) {
    _data = json['data'] != null ? UserModelItem.fromJson(json['data']) : null;
    _status = json['status'];
    _msg = json['msg'];
  }
  UserModelItem? _data;
  int? _status;
  String? _msg;

  UserModelItem? get data => _data;
  int? get status => _status;
  String? get msg => _msg;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    if (_data != null) {
      map['data'] = _data?.toJson();
    }
    map['status'] = _status;
    map['msg'] = _msg;
    return map;
  }

}

/// userId : 1
/// nickName : "quzah"
/// password : "wyh123132"
/// avatarUrl : null
/// sex : "1"
/// mobil : null
/// createTime : "2021-10-19T11:08:24.000+00:00"
/// updateTime : "2021-10-19T11:08:24.000+00:00"

class UserModelItem {
  UserModelItem({
      int? userId, 
      String? nickName, 
      String? password, 
      dynamic avatarUrl, 
      String? sex, 
      dynamic mobil, 
      String? createTime, 
      String? updateTime,}){
    _userId = userId;
    _nickName = nickName;
    _password = password;
    _avatarUrl = avatarUrl;
    _sex = sex;
    _mobil = mobil;
    _createTime = createTime;
    _updateTime = updateTime;
}

  UserModelItem.fromJson(dynamic json) {
    _userId = json['userId'];
    _nickName = json['nickName'];
    _password = json['password'];
    _avatarUrl = json['avatarUrl'];
    _sex = json['sex'];
    _mobil = json['mobil'];
    _createTime = json['createTime'];
    _updateTime = json['updateTime'];
  }
  int? _userId;
  String? _nickName;
  String? _password;
  dynamic _avatarUrl;
  String? _sex;
  dynamic _mobil;
  String? _createTime;
  String? _updateTime;

  int? get userId => _userId;
  String? get nickName => _nickName;
  String? get password => _password;
  dynamic get avatarUrl => _avatarUrl;
  String? get sex => _sex;
  dynamic get mobil => _mobil;
  String? get createTime => _createTime;
  String? get updateTime => _updateTime;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['userId'] = _userId;
    map['nickName'] = _nickName;
    map['password'] = _password;
    map['avatarUrl'] = _avatarUrl;
    map['sex'] = _sex;
    map['mobil'] = _mobil;
    map['createTime'] = _createTime;
    map['updateTime'] = _updateTime;
    return map;
  }

}